# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-kerberos
_pkgname=kerberos
pkgver=1.3.1
pkgrel=4
pkgdesc="Python Kerberos high-level interface"
url="https://pypi.org/project/kerberos"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="krb5-dev py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-kerberos # Backwards compatibility
provides=py-kerberos=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="63608c6ee94bcade567de19bea5e139039b336e181a319184666a0d1a11b1b6cd10cebf7bab52adc67502788c1632ff36a2534de37b4d01a5a32d9003aa74c6e  kerberos-1.3.1.tar.gz"
